/*
 * @Descripttion: 
 * @Author: xiaodong
 * @Date: 2020-12-21 10:01:30
 * @LastEditTime: 2021-03-03 15:36:40
 * @FilePath: \cloud-monitor-server\src\configs\mysql.js
 */
// mysql 配置。 mysql 使用参见 https://dev.mysql.com/doc/refman/8.0/en/
import env from '~/src/configs/env'

// 下面的特定环境可以深度合并到上面的默认环境
// 线上环境是上面的默认环境，不要乱改哦

// 本地环境配置
const local = {
  host: '127.0.0.1',
  port: '3306',
  user: 'root',
  password: '123456',
  database: 'platform'
}
// 开发环境配置
const development = {
  host: '172.31.15.8',
  port: '3306',
  user: 'cloud_monitor_server',
  password: 'U4BaOBcPuUp0gw__PhaIDQX5XmtjZaV1',
  database: 'cloud_monitor_server'
}
// 测试环境配置
const test = {
  host: 'mysql.test.internal.seeyon.site',
  port: '3306',
  user: 'cloud_monitor',
  password: 'p1qJP2XqDQLLPxEdjlhTElrJfj2HY_cb',
  database: 'cloud_monitor'
}

//类生产环境
const vprod= {
  host: '172.31.48.8',
  port: '3306',
  user: 'cloud_monitor',
  password: 'wGlMR04EBoNYuqqPLND50pYODXphJ3xE',
  database: 'cloud_monitor'
}; 
// 线上环境
const prod = {
  host: 'mysql-cce.internal.seeyon.site',
  port: '3406',
  user: 'cloud_monitor',
  password: 'V9yM_yIqC98BJ2ti1BQwYO88LZ1Z7d_Y',
  database: 'cloud_monitor'
}; 

let config = {
  local,
  development,
  test,
  vprod,
  prod
}

export default config[env]
